<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
  String ctxPath = request.getContextPath();
  request.setAttribute("ctxPath", ctxPath);
%>
<html>
<head>
  <meta charset="UTF-8">
  <title>想放松的工具箱-在线MD5加密</title>
</head>

<body>
<h1>新的在线MD5加密</h1>

<form action="${ctxPath}/md5" method="post">
  <label>明文：<br>
    <textarea id="str" name="str" rows="4" cols="50" >${str}</textarea>
  </label><br>
  <label>
    <input type="radio" name="type" value="small" ${type != 'big' ? 'checked' : ''}>小写32位
  </label>
  <label>
    <input type="radio" name="type" value="big" ${type == 'big' ? 'checked' : ''}>大写32位
  </label><br>
  <input type="submit"><br>密文：<br>
  <p>${md5}</p>
</form>

</body>
</html>
